#ifndef SELECTSTOCKW_H
#define SELECTSTOCKW_H

#include <QWidget>
#include "freezetablewidget.h"
#include <QLineEdit>
#include <QPushButton>
#include <QDial>
#include <QLabel>
#include <QLineEdit>

class SelectStockW : public QWidget
{
    Q_OBJECT
public:
    explicit SelectStockW(QWidget *parent = nullptr);

private slots:
    void onBtnSearchClick(bool);
    void onNextPage();
    void onPrePage();

private:
    void updateStockList(QString& startDate, QString& endDate,int upDivChange,int pageNum,int markValStart, int markValEnd,int tradeRatio,int upRation);
    void gotoPage(int num);
    void initUI();
    void initData();
    void createConnect();

private:
       FreezeTableWidget *tableView;
       QLineEdit *lchang_div_trade;
       QLineEdit *lstartdate;
       QLineEdit *lenddate;
       QLineEdit *line_startMarketVal;
       QLineEdit* line_endMarkteVal;
       QLineEdit* line_changeRatio;
       QLineEdit* line_upRatio;

       QLabel *l_curPage;


       QPushButton *btn_search;
       QPushButton *btn_next;
       QPushButton *btn_pre;
};

#endif // SELECTSTOCKW_H
